#carousel {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: auto;
}

#carousel img {
    width: 100%;
    max-width: 800px;
    position: absolute; /* 设置图片的位置为绝对，以便在同一位置放置所有图片 */
    display: none; /* 默认隐藏所有图片 */
}

#carousel img:first-child {
    display: block; /* 仅显示第一张图片 */
}

#dots {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 10px;
    width: 100%;
    padding: 0;
    margin: 0;
}

#dots li {
    list-style: none;
    cursor: pointer;
    background-color: #ffffff;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    margin: 0 5px;
    display: flex;
    justify-content: center;
    align-items:center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#dots li::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

#dots .active {
    background-color: transparent;
}

#dots .active::after {
    background-color: #000000;
}